#ifndef CONFIGUREDIALOG_H
#define CONFIGUREDIALOG_H

#include "ui_ConfigureDialog.h"
#include "ProfileConfigure.h"
#include "lib/profile.h"
#include "lib/options.h"
#include <QList>
#include <QAbstractButton>

class ConfigureDialog : public QDialog , public Ui::ConfigureDialog{
    Q_OBJECT
    public:
	ConfigureDialog( QList<Profile *> * newProfiles ,  QWidget * parent = 0);
	void fromOptions(QAbstractButton *button, QString optionName, bool flag = true);
	void toOptions(QAbstractButton *button, QString optionName, bool flag = true);
	void apply();
    signals:
	void configureFinished();
    private :
	Options * options;
	Profile * temp;
	QList<Profile *> * profiles;
	ProfileConfigure * profileEdit;
    public slots:
	void on_createButton_clicked();
	void on_editButton_clicked();
	void on_deleteButton_clicked();
	void on_buttonBox_accepted();
	void on_buttonBox_rejected();
	void createFinish(int value);
	void refresh();
};

#endif

